﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using BeetleX.Http.Clients;
using DEEBCG.ExternalLib.CompanyAPI.Model;

namespace DEEBCG.ExternalLib.CompanyAPI
{
    /// <summary>
    /// 获取Device接口类
    /// </summary>
    [Controller(BaseUrl = "/api/Device/")]
    public interface IDevice
    {
        /// <summary>
        /// 获取设备列表
        /// </summary>
        /// <param name="companyID"></param>
        /// <returns></returns>
        [Get]
        Task<ResultInfo<IList<CompanyInfo>>> GetList2(string companyID,[Header("DEEBCG")]string token);

        /// <summary>
        /// 绑定设备
        /// </summary>
        /// <param name="info">绑定参数</param>
        /// <returns></returns>
        [Post]
        Task<ResultInfo<string>> BindDevice(BindDeviceInfo info, [Header("DEEBCG")] string token);

        /// <summary>
        /// 解绑设备
        /// </summary>
        /// <param name="info">解绑参数</param>
        /// <returns></returns>
        [Post]
        Task<ResultInfo<string>> UntieDevice(UntieDeviceInfo info, [Header("DEEBCG")] string token);

    }
}
